package com.cloud.phone.utils

import android.os.Build

/**
 * @auth: njb
 * @date: 2024/6/5 9:55
 * @desc: 描述
 */
object FingerprintGeneratorUtils {
    fun generateFingerprint(): String {
        val manufacturer = Build.MANUFACTURER
        val brand = Build.BRAND
        val name = Build.PRODUCT
        val device = Build.DEVICE
        val versionRelease = Build.VERSION.RELEASE
        val buildId = Build.ID
        val buildType = Build.TYPE
        val buildTags = Build.TAGS
        val incremental = Build.VERSION.INCREMENTAL

        return String.format(
            "%s/%s/%s:%s/%s/%s:%s/%s",
            brand,
            name,
            device,
            versionRelease,
            buildId,
            incremental,
            buildType,
            buildTags
        )
    }
}